//
//  TFLargeLivePPTview.swift
//  TalkfunSDKDemo
//
//  Created by 莫瑞权 on 2022/4/26.
//  Copyright © 2022 Talkfun. All rights reserved.
//

import UIKit

class TFLargeLivePPTview: UIView {
    //默认占位图
    let bitmapView = TFBitmapView()
    //ppt信息及按钮
    let pptsFunctionView = TFPPTFunctionView()
    
    @objc public var touchesBegan:touchesBeganBlock?
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.bitmapView.isUserInteractionEnabled = false
        bitmapView.isHidden = true
        self.addSubview(self.bitmapView)
        self.addSubview(self.pptsFunctionView)
    }

    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.bitmapView.frame = self.bounds
        
        self.pptsFunctionView.frame = self.bounds
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
       
        
        if self.touchesBegan != nil {
            self.touchesBegan!()
        }
    }
}
